package cn.iocoder.yudao.module.cont.controller.admin.deal.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 代办事项  Response VO")
@Data
@ExcelIgnoreUnannotated
public class DealRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15108")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13181")
    @ExcelProperty("合同编号")
    private String htid;

    @Schema(description = "合同名称")
    @ExcelProperty("合同名称")
    private String htmc;

    @Schema(description = "合同金额")
    @ExcelProperty("合同金额")
    private BigDecimal htje;

    @Schema(description = "服务开始时间")
    @ExcelProperty("服务开始时间")
    private LocalDateTime kssj;

    @Schema(description = "服务结束时间")
    @ExcelProperty("服务结束时间")
    private LocalDateTime jssj;

    @Schema(description = "负责人")
    @ExcelProperty("负责人")
    private String fzr;

    @Schema(description = "合同状态")
    @ExcelProperty(value = "合同状态", converter = DictConvert.class)
    @DictFormat("cont_htzt") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String htzt;


}